package com.subject.shuati.domain.service;


import com.subject.shuati.common.entity.PageResult;
import com.subject.shuati.domain.entity.SubjectInfoBo;
import com.subject.shuati.infra.basic.entity.SubjectInfoEs;

import java.util.List;

/**
 * 题目信息domain
 */
public interface SubjectInfoDomainService {
    /**
     * 新增题目
     * @param subjectInfoBo
     * @return
     */
    void add(SubjectInfoBo subjectInfoBo);

    /**
     * 分页查询题目列表
     * @param subjectInfoBo
     * @return
     */
    PageResult<SubjectInfoBo> getSubjectPage(SubjectInfoBo subjectInfoBo);

    /**
     * 查询题目详细信息
     * @param subjectInfoBo
     * @return
     */
    SubjectInfoBo querySubjectInfo(SubjectInfoBo subjectInfoBo);

    /**
     * 全文检索
     * @param subjectInfoBo
     * @return
     */
    PageResult<SubjectInfoEs> getSubjectPageBySearch(SubjectInfoBo subjectInfoBo);

    /**
     *  查询贡献者列表
     * @return
     */
    List<SubjectInfoBo> getContributeList();

}
